<!-- angular通过ng-modal添加模态框时，不需要外层的div，只需从modal-content开始即可 -->
<div class="">
    <div class="modal-header">
        <h3 class="modal-title">修改需求【{{info.number}}】</h3>
    </div>
    <form class="modal-body form-horizontal">
        <div class="form-group">
            <label class="col-sm-2 control-label">提出人：</label>
            <div class="col-sm-10">
                <label class="control-label pull-left">{{info.creatorName ? info.creatorName : info.creatorAccount}}</label>
            </div>
        </div>
        <div class="line-lg pull-in" style="margin-top: 8px;margin-bottom: 8px;"></div>
        <div class="form-group">
            <label class="col-sm-2 control-label">提出时间：</label>
            <div class="col-sm-10">
                <label class="control-label">{{info.createTime | date: 'yyyy-MM-dd'}}</label>
            </div>
        </div>
        <div class="line-lg pull-in" style="margin-top: 8px;margin-bottom: 8px;"></div>
        <div class="form-group">
            <label class="col-sm-2 control-label" for="req-input">描述：</label>
            <div class="col-sm-3">
                <m-ui-select prompt="请选择用户"
                             itme-list="issueUser"
                             selected-item="info.userItem"
                             select-item-fun="selectUserItem(item)"
                             ng-if="isMatrixRole()"
                             has-disabled="info.issueModal"
                >
                </m-ui-select>
                <span ng-if="!isMatrixRole()">{{info.userItem.crtname}}</span>
            </div>
            <div class="col-sm-7">
                <input id="req-input" type="text" class="form-control" ng-model="info.action"
                       readonly="info.issueModal" ng-if="isMatrixRole()">
                <span ng-if="!isMatrixRole()">{{info.action}}</span>
            </div>
        </div>
        <div class="line-lg pull-in" style="margin-top: 8px;margin-bottom: 8px;"></div>
        <div class="form-group">
            <label class="col-sm-2 control-label">交付给：</label>
            <div class="col-sm-10">
                <m-single-select-user  class="mm-loading"
                                       prompt="请选择交付对象"
                                       selected-user="sltAccount"
                                       select-user-fun="selectToAccount(user)"
                                       ng-if="isMatrixRole()&&!info.issueModal"


                >
                </m-single-select-user>
                <m-ui-select prompt="请选择交付对象"
                             itme-list="sltAccount"
                             selected-item="info.userItem"
                             ng-if="isMatrixRole()"
                             has-disabled="info.issueModal"
                             ng-if="info.issueModal"
                >
                </m-ui-select>
                <span ng-if="!isMatrixRole()">{{sltAccount.realname}}</span>
            </div>
        </div>
        <div class="line-lg pull-in" style="margin-top: 8px;margin-bottom: 8px;"></div>
        <div class="form-group">
            <label class="col-sm-2 control-label">业务线：</label>
            <div class="col-sm-10">
                <m-ui-select prompt="请选择业务线"
                             itme-list="issueList"
                             selected-item="info.typeItem"
                             select-item-fun="selectTypeItem(item)"
                             ng-if="isMatrixRole()"
                             has-disabled="info.issueModal"
                >
                </m-ui-select>
                <span ng-if="!isMatrixRole()">{{info.typeItem.crtname}}</span>
            </div>
        </div>
        <!--<div class="line-lg pull-in" style="margin-top: 8px;margin-bottom: 8px;"></div>-->
        <!--<div class="form-group">-->
        <!--<label class="col-sm-2 control-label">关联BRD：</label>-->
        <!--<div class="col-sm-10">-->
        <!--<m-ui-select prompt="请选择BRD"-->
        <!--itme-list="brdList"-->
        <!--selected-item="info.brdItem"-->
        <!--select-item-fun="selectBrdItem(item)">-->
        <!--</m-ui-select>-->
        <!--</div>-->
        <!--</div>-->
        <div class="line-lg pull-in" style="margin-top: 8px;margin-bottom: 8px;"></div>
        <div class="form-group">
            <label class="col-sm-2 control-label">状态：</label>
            <div class="col-sm-10">
                <m-ui-select prompt="请选择状态"
                             itme-list="issueStatus"
                             selected-item="info.issueStatusItem"
                             select-item-fun="selectIssueStatusItem(item)"
                             ng-if="isMatrixRole()"
                             has-disabled="info.issueModal"
                >
                </m-ui-select>
                <span ng-if="!isMatrixRole()">{{info.issueStatusItem.crtname}}</span>
            </div>
        </div>
        <div class="line-lg pull-in" style="margin-top: 8px;margin-bottom: 8px;"></div>
        <div class="form-group">
            <label class="col-sm-2 control-label">分组标题：</label>
            <div class="col-sm-10">
                <input id="req-input" type="text" class="form-control" ng-model="info.groupTag"
                       ng-if="isMatrixRole()" ng-disabled="info.issueModal">
                <span ng-if="!isMatrixRole()">{{info.groupTag}}</span>
            </div>
        </div>
    </form>
    <div class="modal-footer">
        <button type="button" class="btn btn-primary" ng-click="createClick()" ng-if="isMatrixRole()&&!info.issueModal">确定</button>
        <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="cancelClick()">取消</button>
    </div>
</div>
